package com.iot08.api.config.sms;


import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

/**
 * @description:
 * @author: chenwenjie
 * @date: 2023/6/29 10:22
 * @param:
 * @return:
 **/
public class AliYunSmsConfig {
    private String accessKeyId;
    private String accessKeySecret;
    private String templateCode;
    private String signName;
    private Integer limitSendCount;
    private Boolean enable;
    private String templateCode2;

    private String templateCode3;

    private String templateCode4;

    private String templateCode5;

    private String templateCode6;

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public String getAccessKeySecret() {
        return accessKeySecret;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
    }

    public Map<String, String> getTemplate(Integer templateType) {
        switch (templateType){
            case 0:{
                return getResetTemplate1();
            }
            case 1: {
                return getResetTemplate2();
            }
            case 2: {
                return getResetTemplate3();
            }
            case 3:{
                return getResetTemplate4();
            }
            case 4:{
                return getResetTemplate5();
            }
            case 5:{
                return getResetTemplate6();
            }
        }
        return getResetTemplate1();
    }

    public Map<String, String> getResetTemplate1() {
        Map<String, String> map = new HashMap<>(2);
        map.put("templateCode", templateCode);
        map.put("signName", signName);
        return Collections.unmodifiableMap(map);
    }

    public Map<String, String> getResetTemplate2() {
        Map<String, String> map = new HashMap<>(2);
        map.put("templateCode", templateCode2);
        map.put("signName", signName);
        return Collections.unmodifiableMap(map);
    }

    public Map<String, String> getResetTemplate3() {
        Map<String, String> map = new HashMap<>(2);
        map.put("templateCode", templateCode3);
        map.put("signName", signName);
        return Collections.unmodifiableMap(map);
    }

    public Map<String, String> getResetTemplate4() {
        Map<String, String> map = new HashMap<>(2);
        map.put("templateCode", templateCode4);
        map.put("signName", signName);
        return Collections.unmodifiableMap(map);
    }


    public Map<String, String> getResetTemplate5() {
        Map<String, String> map = new HashMap<>(2);
        map.put("templateCode", templateCode5);
        map.put("signName", signName);
        return Collections.unmodifiableMap(map);
    }

    public Map<String, String> getResetTemplate6() {
        Map<String, String> map = new HashMap<>(2);
        map.put("templateCode", templateCode6);
        map.put("signName", signName);
        return Collections.unmodifiableMap(map);
    }

    public String getTemplateCode() {
        return templateCode;
    }

    public void setTemplateCode(String templateCode) {
        this.templateCode = templateCode;
    }

    public String getTemplateCode2() {
        return templateCode2;
    }

    public void setTemplateCode2(String templateCode2) {
        this.templateCode2 = templateCode2;
    }

    public String getTemplateCode3() {
        return templateCode3;
    }

    public void setTemplateCode3(String templateCode3) {
        this.templateCode3 = templateCode3;
    }

    public String getTemplateCode4() {
        return templateCode4;
    }

    public void setTemplateCode4(String templateCode4) {
        this.templateCode4 = templateCode4;
    }

    public String getSignName() {
        return signName;
    }

    public void setSignName(String signName) {
        this.signName = signName;
    }

    public String getTemplateCode5() {
        return templateCode5;
    }

    public void setTemplateCode5(String templateCode5) {
        this.templateCode5 = templateCode5;
    }

    public String getTemplateCode6() {
        return templateCode6;
    }

    public void setTemplateCode6(String templateCode6) {
        this.templateCode6 = templateCode6;
    }

    public Integer getLimitSendCount() {
        return limitSendCount;
    }

    public void setLimitSendCount(Integer limitSendCount) {
        this.limitSendCount = limitSendCount;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

}
